
// export const BaseUrl = "http://localhost:3000/front"

export const BaseUrl = process.env.REACT_APP_API_BASE_URL;
console.log("baseUrl: " + BaseUrl)

//获取配置信息
export const UrlGetAppConfig = "/sunnycash/eZlAGlvhLwaJxE5G15byA"

//获取验证码
export const UrlGetOtp = "/sunnycash/XiW8BmdDZ7b4nOmRMWSDw"

//验证码登录
export const UrlLogin = "/sunnycash/V6KaBqkkXcj9X0tLqX7k4w"

//fb登录
export const UrlLoginFacebook = "/sunnycash/j1zVVcX8EB8lEEoFFPRwJQ"

//获取首页额度
export const UrlGetLoanLimit = "/sunnycash/j44GrOerMNhHiDIENbpHgA"

//获取用户状态
export const UrlGetUseState = "/sunnycash/jAL0bByi9A0Q34L6N8Otw"

//获取BankCode列表
export const UrlGetBankCodeList = "/sunnycash/Fz3Q4GJpA5tCINHLpyAPw"

//获取贷款信息-申请页使用
export const UrlGetLoanDetail = "/sunnycash/xBvoIOS9JRDUcoTJanzcg"

//获取金额试算信息-申请页使用
export const UrlGetLoanApplyDetailByAmount = "/sunnycash/w9cCnLGjEhbGJS8qnh8sQ"

//确认申请贷款-申请页使用
export const UrlConfirmLoanApply = "/sunnycash/sslNVd1DbvZ6cVH46YYevA"

//获取还款信息-还款页使用
export const UrlGetReapyDetail = "/sunnycash/HElE2wVwsLUIwhAc8Ga7ww"

//获取还款链接-还款页使用
export const UrlGetReapyUrl = "/sunnycash/Kt1hSt3DdvcriuQl4OH4VQ"

//获取还款链接-还款页使用
export const UrlGetReapyUrlKes = "/sunnycash/BpR5PzsSPC6maICM2RiMtA"


//记录埋点
export const UrlSaveEvent = "/sunnycash/hZ4u4ntsEOFQ1zr2WesE7A"

//保存aduid
export const UrlSaveAduid = "/sunnycash/tvRe5toMiXnGo52V7wYsCA"

//获取运营商验证码
export const UrlGetDataSmsCode = "/sunnycash/jwEfAc1lOIS12xwjAAu3Q"

//运营商验证码登录
export const UrlDataSmsCodeLogin = "/sunnycash/j1IqAy3JvmcArDe9Cic0tCQ"

//保存app列表
export const UrlSaveFrequentlyApps = "/sunnycash/eUWhCPCSMfPgPUZHc4z6g"

//保存位置信息
export const UrlSaveUserLocation = "/sunnycash/PVwjSxuwayL4wnF1QqUg"

//上传图片
export const UrlUploadImage = "/sunnycash/j3IBXfKwDSwUk4qEdEGdEQ"

//保存人脸信息
export const UrlSaveFaceInfo = "/sunnycash/TwW4cOW9SNIoyU5i9BWouQ"

//保存fb信息息
export const UrlSaveFacebookInfo = "/sunnycash/AqXze9VUeG6xe69HZ4tA"

//发送失败短信
export const UrlSendContractSms = "/front/v1/sendContractSms"


/**
 * 转换为未映射接口
 * @param {String} apiUrl_20231025170845
 */
export const toUnRefApi = apiUrl => {
    switch (apiUrl) {
        //基本信息
        // case "/easemoney/yrXwdOXjoy3ZWGc4rrWqQ": return "/sunnycash/MezM843UjZnBVSMISPhw"
        //联系人信息
        // case "/easemoney/jd3jakd4hmla2A6NXLvg": return "/sunnycash/wQ39I5FRA25CQAWUsADOGw"
        //工作信息
        // case "/easemoney/Al10Gs9YV3TR1mvJ8b5tWA": return "/sunnycash/GeRSIant6PuysvEMWrSdCw"
        //bvn信息
        // case "/easemoney/iPYFCf8jkHQXY5NAmHaQ": return "/sunnycash/V9g0LLigCKfpK7bBBS9jg"
        //银行卡信息
        // case "/easemoney/d0cRE1wjWoVPaqutUTyA": return "/sunnycash/uWf6rc9FGo2i9opoWlKg"

        default: return apiUrl
    }
}